package lab02.test12;


public class Circle extends Shape{

    //属性：半径

    double radius;

    //行为：赋值，面积，周长

    Circle(double z){

        radius=z;
    }

    @Override
    double area() {

        return 3.14*radius*radius;
    }

    @Override
    double perimeter() {

        return 3.14*2*radius;
    }


}
